<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <th>账户id</th>
        <th>账户名称</th>
        <th>账户金额</th>
        <th colspan="2">操作</th>
    </tr>
    <c:forEach items="${accountList}" var="account">
        <tr>
            <td>${account.id}</td>
            <td>${account.name}</td>
            <td>${account.money}</td>
            <td>
                <a href="${pageContext.request.contextPath}/account/updateUI?id=${account.id}&name=${account.name}&money=${account.money}">修改</a>
            </td>
            <td><a href="${pageContext.request.contextPath}/account/delete?id=${account.id}">删除</a></td>
        </tr>
    </c:forEach>
</table>
    <h1>转账</h1>
    <form action="${pageContext.request.contextPath}/account/transfer" method="post">
        转出人:<input type="text" name="outMan">
        转出金额:<input type="text" name="money">
        转入人:<input type="text" name="inMan">

        <input type="submit" value="转账"><br/>
    </form>

</body>
</html>
